const mongoose = require('mongoose')

const schema = new mongoose.Schema({
  destination: { type: String },
  encoding: { type: String },
  fieldname: { type: String },
  filename: { type: String },
  mimetype: { type: String },
  originalname: { type: String },
  path: { type: String },
  size: { type: Number },
})

module.exports = mongoose.schema('File', schema)